﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using UMLTouch.UI.Start.ViewModels;
using UMLTouch.UI.Controls;

namespace UMLTouch.UI.Start
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            MainWindow window =  new MainWindow();

            String diagramLookupPath = ConfigurationManager.AppSettings["DiagramsFolder"];


            window.DataContext = new ApplicationViewModel(diagramLookupPath);

           

            MainWindow.Show();
        }
    }
}
